package com.example.practice2023.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Timestamp;

public class Shop {

  private Integer shopId;
  private String shopName;
  private String contacts;
  private String contactsPhone;
  private String address;
  // 接收字符串日期，转换为date对象，前端必须传递 "2020-06-20 01:01:01"  这样的格式
  @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
// 下面是服务器响应返回的内容，如果没有格式化转换，那么返回的内容是长毫秒数，接收mysql数据库中的数据也需要设置东八区+8时
  @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Timestamp shopCreateTime;
  private String businessHours;
  private Integer defaultState;
  private Integer shopStatus;


  public Integer getShopId() {
    return shopId;
  }

  public void setShopId(Integer shopId) {
    this.shopId = shopId;
  }


  public String getShopName() {
    return shopName;
  }

  public void setShopName(String shopName) {
    this.shopName = shopName;
  }


  public String getContacts() {
    return contacts;
  }

  public void setContacts(String contacts) {
    this.contacts = contacts;
  }


  public String getContactsPhone() {
    return contactsPhone;
  }

  public void setContactsPhone(String contactsPhone) {
    this.contactsPhone = contactsPhone;
  }


  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }


  public java.sql.Timestamp getShopCreateTime() {
    return shopCreateTime;
  }

  public void setShopCreateTime(java.sql.Timestamp shopCreateTime) {
    this.shopCreateTime = shopCreateTime;
  }


  public String getBusinessHours() {
    return businessHours;
  }

  public void setBusinessHours(String businessHours) {
    this.businessHours = businessHours;
  }


  public Integer getDefaultState() {
    return defaultState;
  }

  public void setDefaultState(Integer defaultState) {
    this.defaultState = defaultState;
  }


  public Integer getShopStatus() {
    return shopStatus;
  }

  public void setShopStatus(Integer shopStatus) {
    this.shopStatus = shopStatus;
  }

}
